<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
	  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	  layout:decorate="~{layouts/layout}">
  <head>
    <meta charset="utf-8">
    <title>电子病历模板</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  </head>
  <body>
	<th:block layout:fragment="content">
		<div class="span9">
			<div class="row-fluid">
				<div class="page-header">
					<h1>电子病历模板列表</h1>
				</div>
				<table class="table table-striped table-bordered table-condensed">
					<thead>
					<tr>
						<th>ID</th>
						<th>病历类型</th>
						<th>标题</th>
						<th>资源</th>
						<th>描述</th>
						<th>版本</th>
						<th>是否多例</th>
						<th>状态</th>
						<th>创建人</th>
						<th>创建时间</th>
						<th>操作</th>
					</tr>
					</thead>
					<tbody>
					<tr class="list-emr-template" th:each="emrTemplate : ${emrTemplateList}">
						<td th:text="${emrTemplate.id}"></td>
						<td th:text="${emrTemplate.type}"></td>
						<td th:text="${emrTemplate.title}"></td>
						<td th:text="${emrTemplate.resource}"></td>
						<td th:text="${emrTemplate.description}"></td>
						<td th:text="${emrTemplate.version}"></td>
						<td th:text="${emrTemplate.allowMultiple == 0 ? '单例' : '多例'}"></td>
						<td th:text="${emrTemplate.published == 0 ? '未发布' : '已发布'}"></td>
						<td th:text="${emrTemplate.createdBy}"></td>
						<td th:text="${#temporals.format(emrTemplate.createTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
						<td>
							<div class="btn-group">
								<a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">操作 <span class="caret"></span></a>
								<ul class="dropdown-menu pull-right">
									<li><a href="#"><i class="icon-pencil"></i> 编辑</a></li>
									<li><a href="#"><i class="icon-trash"></i> 删除</a></li>
								</ul>
							</div>
						</td>
					</tr>
					</tbody>
				</table>
<!--				<a th:href="@{/new-emr-template}" class="btn btn-success">新增</a>-->
			</div>
		</div>
	</th:block>
	<script>
		$(document).ready(function() {
			debugger
			$('.dropdown-menu li a').hover(
					function() {
						$(this).children('i').addClass('icon-white');
					},
					function() {
						$(this).children('i').removeClass('icon-white');
					});
		});
	</script>
  </body>

</html>
